package com.jd.system.service.impl;

import com.jd.basic.service.impl.BaseServiceImpl;
import com.jd.system.domain.SystemDictionaryDetail;
import com.jd.system.domain.SystemDictionaryType;
import com.jd.system.mapper.SystemDictionaryDetailMapper;
import com.jd.system.mapper.SystemDictionaryTypeMapper;
import com.jd.system.service.SystemDictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemDictionaryTypeServiceImpl extends BaseServiceImpl<SystemDictionaryType> implements SystemDictionaryTypeService {
    @Autowired
    private SystemDictionaryTypeMapper mapper;
    @Autowired
    private SystemDictionaryDetailMapper systemDictionaryDetailMapper;



    @Override
    public List<SystemDictionaryDetail> getDetailByTypesId(Long typesIds) {
        return mapper.getDetailByTypesId(typesIds);
    }

    @Override
    public void delete(Long id) {
        systemDictionaryDetailMapper.deleteByTypesId(id);
        super.delete(id);
    }


}
